package com.myframe.demo.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.common.base.BaseServlet;

public class UserServlet extends BaseServlet {

	@Override
	protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
		this.req=req;
		this.res=res;
		
		String method = req.getParameter("method");
		
		if("find".equalsIgnoreCase(method)){
			find();
		}else if("edit".equalsIgnoreCase(method)){
			edit();
		}else if("save".equalsIgnoreCase(method)){
			save();
		}else if("delete".equalsIgnoreCase(method)){
			delete();
		}else{
			find();
		}
		
	}
	private void find(){
		
	}
	private void edit(){
		
	}
	private void save(){
		
	}
	private void delete(){
		
	}
	
}
